package com.mdz.ypxspt.Entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 孟德志
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("qrtz_simple_triggers")
public class QrtzSimpleTriggers extends Model<QrtzSimpleTriggers> {

    private static final long serialVersionUID=1L;

    @TableId(value = "sched_name", type = IdType.AUTO)
    private String schedName;

    @TableField("trigger_name")
    private String triggerName;

    @TableField("trigger_group")
    private String triggerGroup;

    @TableField("repeat_count")
    private Long repeatCount;

    @TableField("repeat_interval")
    private Long repeatInterval;

    @TableField("times_triggered")
    private Long timesTriggered;


    @Override
    protected Serializable pkVal() {
        return this.schedName;
    }

}
